package com.gph.saviorframework.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by iscas-qd on 2016/3/20.
 * 主键生成策略
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface KeyGenerator {

    /**
     * sf_sequences中的SEQUENCE_NAME
     * @return
     */
    String segmentValue();

    /**
     * 主键的初始值
     * @return
     */
    int initialValue();
}
